const userVaildator = async (ctx,next) => {

    const { username , password} = ctx.request.body
    if (!username || !password) {
        console.error('用户名或密码为空',ctx.request.body)
        ctx.status = 400
        ctx.body = {
            code:'10001',
            message:'用户名或密码为空',
            result:''
        }
    }
}

module.exports={
    userVaildator
}